import axios from 'axios'
export default {
  FETCH_CATES ({ commit }, params = {}) {
    axios.get('https://api.it120.cc/conner/cms/category/list', {
      params
    }).then(res => {
      if (res.data.code === 0) {
        commit('INIT_CATES', res.data.data)
      }
    })
  }
}
